rust lang sleep

242

rust lang sleep -

use std::time::Duration;
use std::thread::sleep;

fn main() {
    sleep(Duration::from_millis(2));
}

Comments

Submit
0 Comments